<!DOCTYPE html>
<html>
<include file="Public:header" />
<link href="__ACSS__/dialog.css" rel="stylesheet">
<link href="__ACSS__/plugins/validform/validform.css" rel="stylesheet">
<style>
.row .col-sm-6,.row .col-sm-12{ margin-top:15px;}
</style>
  <body>
	  <div class="wrapper wrapper-content animated fadeInRight">
	 	<form role="form" class="form" action="__ROOT__/Agents/Alipay/cancelOrderAli">
		<input type="hidden" name="update_time" value="<php>echo time();</php>">
		<input type="hidden" name="id" value="<{$vo.id}>">
	  	<div class="ibox">
            <div class="ibox-content">
                <div class="row">
			  		<div class="col-sm-6">
			  			订单编号：<{$vo.code}>
			  		</div>
			  		<div class="col-sm-6">
			  			用户名：<{$vo.register_tel}>
			  		</div>
			  		<div class="col-sm-6">
			  			商品总价：<font class="text-danger"><{$vo.real_price}></font>
			  		</div>
			  		<div class="col-sm-6">
			  			配送费：<font class="text-danger"><{$vo.mail_fee}></font>
			  		</div>
			  		<div class="col-sm-6">
			  			支付类型：
			  			<switch name="vo.pay_type" >
							<case value="1">支付宝</case>
							<case value="2">微信</case>
							<case value="3">余额支付</case>
							<default />未知
						</switch>
			  		</div>
			  		<div class="col-sm-6">
			  			支付账号：<{$vo.pay_email}>
			  		</div>
			  		<div class="col-sm-6">
			  			支付交易号：<{$vo.pay_code}>
			  		</div>
			  		<div class="col-sm-6">
			  			订单状态：
			  			<switch name="vo.status" >
							<case value="-3">拒绝退款</case>
							<case value="-2">退款成功</case>
							<case value="-1">失效</case>
							<case value="0">申请退款</case>
							<case value="1">未付款</case>
							<case value="2">已付款</case>
							<case value="3">配送中</case>
							<case value="4">完成</case>
							<default />未知
						</switch>
			  		</div>
			  		<div class="col-sm-6">
			  			付款时间：<notempty name="vo.pay_time"><{$vo.pay_time|date='Y-m-d H:i:s',###}></notempty>
			  		</div>
			  	</div>
			  	<hr/>
			  	<span>如取消，当前订单将退回原支付渠道【支付宝】总金额：配送费<span style="color:red;"><{$vo.mail_fee}></span> + 订单总价<span style="color:red;"><{$vo.real_price}></span></span>
			  	<br/>
			  	<span style="color:red;">操作不可逆转，请谨慎操作！！！</span>
			  	<hr/><br/>
			  	<div class="alipayCode"></div>
				<div class="clearfix">
					<button type="submit" id="submit" class="btn btn-success btn-block">提交</button>
					<button type="reset" id="reset2" class="btn btn-success btn-block hidden">重置</button>
				</div>
            </div>
        </div>
        </form>
	  </div>
  </body>
<!-- 全局js -->
<include file="Public:foot" />
<script src="__AJSPLUGINS__/validform/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
$(function(){
	var index = parent.layer.getFrameIndex(window.name);
	var form = $(".form").Validform({
		tiptype:4,
		ajaxPost:true,
		callback:function(data){
			if(data.status == 1) {
				$(".alipayCode").html(data.data);
			}else{
				window.parent.layer.msg(data.info);
			}
		}
	});
})
</script>
</html>